import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as Icons from "@element-plus/icons-vue";
import App from "./App.vue";
import router from "./router";
import { toLine } from "./utils";
// import mUI from "./components";
import mUI from "../lib/m-element-ui";
import "../lib/style.css";
import "./mock";
// import chooseIcon from "../lib/chooseIcon/index"; //单个引入组件测试
// import "../lib/chooseIcon/style.css";


const app = createApp(App);

app.use(ElementPlus);
for (let i in Icons) {
  // console.log(i, "??", `el-icon${toLine(i)}`, (Icons as any)[i]);
  app.component(`el-icon${toLine(i)}`, (Icons as any)[i]);
}
app.use(router);
app.use(mUI);
// app.use(chooseIcon)
app.mount("#app");
